package com.woniuxy.micropurchaseserver.purchasereturnmsg.service;

import com.woniuxy.micropurchaseserver.bean.PurchaseReturnBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseReturnService {
    /**
     * 查询所有采购退货单
     * @return
     */
    public List<PurchaseReturnBean> findAllPurchaseReturn(PurchaseReturnBean purchaseReturnBean);

    /**
     * 根据ID删除采购退货单
     * @param id
     * @return
     */
    public Integer deletePurchaseReturnById(Integer id);

    /**
     * 修改采购退货单
     * @param purchaseReturnBean
     * @return
     */
    public Integer UpdatePurchaseReturn( PurchaseReturnBean purchaseReturnBean);

    /**
     * 新增采购退货单
     * @param purchaseReturnBean
     * @return
     */
    public Long InsertPurchaseReturn(@Param("preturn") PurchaseReturnBean purchaseReturnBean);
}
